import request from '@/utils/request'

export function listCar(query) {
  return request({
    url: '/system/car/list',
    method: 'get',
    params: query
  })
}
export function listChang() {
  return request({
    url: '/system/car/listChang',
    method: 'get',
  })
}
export function listType() {
  return request({
    url: '/system/car/listType',
    method: 'get',
  })
}
export function addCar(query) {
  return request({
    url: '/system/car/addCar',
    method: 'get',
    params: query
  })
}

// 删除汽车信息
export function delLogininfor(infoIds) {
  return request({
    url: '/system/car/del?infoIds=' + infoIds,
    method: 'delete'
  })
}

// easyExcel汽车信息
export function excelOut() {
  return request({
    url: '/system/car/excel' ,
    method: 'get'
  })
}




// 查询菜单详细
export function getMenu(menuId) {
  return request({
    url: '/system/menu/' + menuId,
    method: 'get'
  })
}

// 查询菜单下拉树结构
export function treeselect() {
  return request({
    url: '/system/menu/treeselect',
    method: 'get'
  })
}

// 根据角色ID查询菜单下拉树结构
export function roleMenuTreeselect(roleId) {
  return request({
    url: '/system/menu/roleMenuTreeselect/' + roleId,
    method: 'get'
  })
}

// 新增菜单
export function addMenu(data) {
  return request({
    url: '/system/menu',
    method: 'post',
    data: data
  })
}
